<template>
  <h1>hello world</h1>
  <h2>count is {{ count }}
    <button @click="count++">增加</button>
  </h2>
</template>

<script>
import { ref } from 'vue';
export default {
  setup() {
    const count = ref(1)
    return { count }
  }
}

</script>

<style lang="css" scoped>
h1 {
  color: red;
}
</style>